﻿// JavaScript Document
// slideBar
    $(function(){
			var slideBar = $(" .slideBar");
			var shrinkBar = $(".shrinkBar");
			
			var shrinkBar = $(".pagemain .shrinkBar");
			var shrinkBarLeft = $(" .shrinkBarLeft");
			var tableHome_th = $(".tableHome_th");
			var tableHome_td = $(".tableHome_td");
			var tableHome_bar = $(".tableHome_bar");
		
		//点击关闭侧边栏
		$("#shrinkimg1").click(function(){
			    $(window.parent.document).find(".tableHome_bar").show();
				$(window.parent.document).find(".tableHome_th").hide();
				$("#shrinkleftframeid", parent.document.body).attr({src:"shrinkleft.html?group=1"});
		});
		//点击显示侧边栏
		$("#shrinkimga1").click(function(){
				$(window.parent.document).find(".tableHome_th").show();
				$(window.parent.document).find(".tableHome_bar").hide();
				$("#leftframeid", parent.document.body).attr({src:"left.html?group=1"});
				});
		//点击关闭侧边栏
		$("#shrinkimg2").click(function(){
			    $(window.parent.document).find(".tableHome_bar").show();
				$(window.parent.document).find(".tableHome_th").hide();
				$("#shrinkleftframeid", parent.document.body).attr({src:"shrinkleft.html?group=2"});
		});
		//点击显示侧边栏
		$("#shrinkimga2").click(function(){
				$(window.parent.document).find(".tableHome_th").show();
				$(window.parent.document).find(".tableHome_bar").hide();
				$("#leftframeid", parent.document.body).attr({src:"left.html?group=2"});
				});
		//点击关闭侧边栏
		$("#shrinkimg3").click(function(){
			    $(window.parent.document).find(".tableHome_bar").show();
				$(window.parent.document).find(".tableHome_th").hide();
				$("#shrinkleftframeid", parent.document.body).attr({src:"shrinkleft.html?group=3"});
		});
		//点击显示侧边栏
		$("#shrinkimga3").click(function(){
				$(window.parent.document).find(".tableHome_th").show();
				$(window.parent.document).find(".tableHome_bar").hide();
				$("#leftframeid", parent.document.body).attr({src:"left.html?group=3"});
				});
		//点击关闭侧边栏
		$("#shrinkimg4").click(function(){
			    $(window.parent.document).find(".tableHome_bar").show();
				$(window.parent.document).find(".tableHome_th").hide();
				$("#shrinkleftframeid", parent.document.body).attr({src:"shrinkleft.html?group=4"});
		});
		//点击显示侧边栏
		$("#shrinkimga4").click(function(){
				$(window.parent.document).find(".tableHome_th").show();
				$(window.parent.document).find(".tableHome_bar").hide();
				$("#leftframeid", parent.document.body).attr({src:"left.html?group=4"});
				});
		//点击关闭侧边栏
		$("#shrinkimg5").click(function(){
			    $(window.parent.document).find(".tableHome_bar").show();
				$(window.parent.document).find(".tableHome_th").hide();
				$("#shrinkleftframeid", parent.document.body).attr({src:"shrinkleft.html?group=5"});
		});
		//点击显示侧边栏
		$("#shrinkimga5").click(function(){
				$(window.parent.document).find(".tableHome_th").show();
				$(window.parent.document).find(".tableHome_bar").hide();
				$("#leftframeid", parent.document.body).attr({src:"left.html?group=5"});
				
				});
		//点击关闭侧边栏
		$("#shrinkimg6").click(function(){
			    $(window.parent.document).find(".tableHome_bar").show();
				$(window.parent.document).find(".tableHome_th").hide();
				$("#shrinkleftframeid", parent.document.body).attr({src:"shrinkleft.html?group=6"});
		});
		//点击显示侧边栏
		$("#shrinkimga6").click(function(){
				$(window.parent.document).find(".tableHome_th").show();
				$(window.parent.document).find(".tableHome_bar").hide();
				$("#leftframeid", parent.document.body).attr({src:"left.html?group=6"});
				
				});
	//侧边栏滑动效果
		$(".shrinkimg").hover(function(){
			$(this).find("img").attr({src:"images/leftskinhover.gif"});						 
		},function(){
			$(this).find("img").attr({src:"images/leftskin.gif"});	
		});
		$(".shrinkimg1").hover(function(){
			$(this).find("img").attr({src:"images/rightskinhover.gif"});							 
		},function(){
			$(this).find("img").attr({src:"images/rightskin.gif"});	
		})		

	});